#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: 20210531_stl2glb.py
# @time: 2021/5/31 18:08
# @desc:
import os

from stp_to_gltf import stl_to_glb

for i in os.listdir("standard_part"):
    if not i.endswith(".stl"):
        continue
    # print(i)
    # print(os.path.abspath(os.path.join("standard_part", i)))
    path = os.path.abspath(os.path.join("standard_part", i))
    stl_to_glb(path, filename=i)
